package com.newly.common.base.entity.sys.tenant.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author: chenruheng
 * @Date: 2021/12/6 17:01
 */
@Data
@ApiModel(value = "修改密码dto")
public class UpdPasswordDto {
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @NotBlank(message = "用户id为空")
    private String id;

    /**
     * 原密码
     */
    @ApiModelProperty("原密码")
    @NotBlank(message = "原密码为空")
    private String lastPassword;

    /**
     * 新密码
     */
    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码为空")
    private String password;

}
